<template>
  <div class="dialog-main">
    <el-form ref="form" :model="form" label-width="180px" class="w800p">
      <el-form-item label="名称">
        <el-input v-model="form.name" size="mini"></el-input>
      </el-form-item>
      <el-form-item label="型号">
        <el-input v-model="form.name" size="mini"></el-input>
      </el-form-item>
      <el-form-item label="唯一标识">
        <el-input v-model="form.name" size="mini"></el-input>
      </el-form-item>
      <el-form-item label="用户编号">
        <el-input v-model="form.name" size="mini"></el-input>
      </el-form-item>
      <el-form-item label="在线状态">
        <el-radio-group v-model="form.resource" size="mini">
          <el-radio label="在线" :value="1"></el-radio>
          <el-radio label="离线" :value="2"></el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="机构编号">
        <el-input v-model="form.name" size="mini"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" size="mini" @click="onSubmit">确定</el-button>
        <el-button size="mini">取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        name: '',
        region: '',
        resource: 1
      }
    }
  },
  props: {
    detailData: Object
  },
  created() {
  },
  methods: {
    onSubmit() {
      console.log(this.detailData)
      console.log('submit!')
    }
  }
}
</script>

